@import "./animation.css";
@import "./extras.css";
@import "./var.css";
* {
  padding: 0;
  margin: 0;
}
html,
body,
.bg {
  height: 100%;
}
.bg {
  background-size: 100% 100%;
  background-repeat: no-repeat;
  user-select: none;
}

.bg.light {
  background: radial-gradient(
    circle at center,
    var(--bg-color-light-1),
    var(--bg-color-light-1) 50%,
    var(--bg-color-light-2)
  );
}
.bg.green {
  background: radial-gradient(
    circle at center,
    var(--bg-color-green-1),
    var(--bg-color-green-1) 50%,
    var(--bg-color-green-2)
  );
}
.shadow {
  width: 100%;
  height: 100%;
  position: fixed;
  animation: open-eye 1s 0.2s forwards;
  background-color: #000000;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
}
.baymax {
  border-bottom: 1.5em solid #000;
  position: absolute;
  top: 50%;
  left: 50%;
  width: 50%;
  transform: translate(-50%, -40%);
}
.baymax::before {
  background: #000;
  border-radius: 50%;
  content: "";
  position: absolute;
  width: 12em;
  height: 12em;
  left: -9em;
  top: -6em;
  transform: skewX(-4deg);
}

.baymax::after {
  background: #000;
  border-radius: 50%;
  content: "";
  position: absolute;
  width: 12em;
  height: 12em;
  right: -9em;
  top: -6em;
  transform: skewX(4deg);
}

.light .baymax::before,
.light .baymax::after {
  background: linear-gradient(
    to bottom,
    var(--bg-color-light-eye),
    var(--bg-color-light-eye) 50%,
    #000 50%,
    #000
  );
  background-position: 0 -100%;
  background-size: 200% 200%;
}

.green .baymax::before,
.green .baymax::after {
  background: linear-gradient(
    to bottom,
    var(--bg-color-green-eye),
    var(--bg-color-green-eye) 50%,
    #000 50%,
    #000
  );
  background-position: 0 -100%;
  background-size: 200% 200%;
}

.baymax::before {
  animation: blink 6s infinite;
}
.baymax::after {
  animation: blink 6s 0.1s infinite;
}

/*  美化滚动条 */
.nh-basic-scroll::-webkit-scrollbar {
  border-radius: 10px;
  width: 6px;
  height: 10px;
  display: none;
}
.nh-basic-scroll::-webkit-scrollbar-track {
  border-radius: 10px;
  transition: 0.3s background-color;
  transition: 0.3s background-color;
}
.nh-basic-scroll::-webkit-scrollbar-thumb {
  border-radius: 10px;
  background-color: #ddd;
  transition: 0.3s background-color;
  display: none;
  transition: all 0.5s;
}
.nh-basic-scroll:hover::-webkit-scrollbar-thumb {
  display: block;
}

.bei-an {
  width: 100%;
  position: fixed;
  bottom: 20px;
  text-align: center;
}
